/**
 * 
 */
package fr.cephb.joperon.core.db;

import java.io.File;


import fr.cephb.joperon.core.Operon;
import fr.cephb.joperon.core.bio.Assembly;
import fr.cephb.joperon.core.bio.Chromosome;
import fr.cephb.joperon.core.db.base.BaseLocMapDB;
import fr.cephb.joperon.core.entities.LocMap;

/**
 * @author lindenb
 * Default LocMapDB
 */
public class LocMapDB
	extends BaseLocMapDB
	{

	/**
	 * @param operon
	 */
	public LocMapDB(Operon operon,Assembly assembly)
		{
		super(operon,assembly);
		}

	public LocMapDB(Operon operon)
		{
		super(operon);
		}	
	

	
	public static void main(String[] args)
		{
		try {
			
			Operon op= Operon.newInstance(new File(Operon.DB_HOME_CEPH));
			LocMapDB db= new LocMapDB(op,Assembly.HSA_NCBI_BUILD_36);
			
			db.open();
			
			
			
			for(LocMap v:db.listBetween(Chromosome.Chr1, 0, 1000).asList())
				{
				System.out.println(v);
				}
			db.close();
			op.close();
		} catch (Exception e) {
			
			}
		}
	

}
